﻿<!--{eval $_TPL['titles'] = array('问答');}-->
<!--{template header}-->
<!--{template ask/view/ask_header}-->
<div class=div_layout>

<div class="h_status"><form action ="./ask.php?do=ask&ac=index" method ="post" name ="searchinfo">
状态： 
<!--{if empty($status) }--><strong>所有</strong><!--{else}--><a href="ask.php?do=ask&type={$type}&status=0">所有</a><!--{/if}--> &nbsp;
<!--{if $status == 1 }--><strong>未解决</strong><!--{else}--><a href="ask.php?do=ask&type={$type}&status=1">未解决</a><!--{/if}--> &nbsp;
<!--{if $status == 2 }--><strong>已解决</strong><!--{else}--><a href="ask.php?do=ask&type={$type}&status=2">已解决</a><!--{/if}--> &nbsp;<input class="t_input" type="text" name="searchinfo" size="20">&nbsp;<select name="typeid" id="typeid">
<option value="">全部</option>
<!--{loop $gEumsType $typeid $typename}-->
<option value="$typeid">$typename</option>				
<!--{/loop}-->	
					</select>&nbsp;<input type="submit" class ="submit" value="搜索" name="B1" style="font-weight: bold"></form>

</div>

	<div class=left>
			<div>
				<div overflow="hidden" height="407" width="560">
<div class="side_right">
	<div class="wide">
		<div class="post_list a_list">
		<!--{if $list}-->
<table width="558" border="0" cellspacing="0" cellpadding="0">
	<!--{loop $list $value}-->
  <tr>
    <td width="12%" rowspan="3"><div class="avatar48"><a href="space.php?uid=$value[uid]"><!--{avatar($value[uid],small)}--></a></div></td>
    <td width="88%"><h4>·<a href="ask.php?do=ask&ac=view&id=$value[id]">$value[title]</a></h4></td>
  </tr>
  <tr>
    <td><a href="space.php?uid=$value[uid]">$value[username]</a> <span class="time"><!--{date('m-d H:i',$value[created],1)}--></span>  &nbsp;
						悬赏积分：<font color="#FF0000">$value[score]</font><!--{if $_SGLOBAL[supe_uid] == $value['uid']}-->   &nbsp;<span class="pipe">|</span>  &nbsp;<a href="ask.php?do=ask&ac=post&id=$value[id]&op=edit">编辑信息</a>   &nbsp;<span class="pipe">|</span>  &nbsp;<a href="ask.php?do=ask&ac=cp&id=$value[id]&op=delete" id="blog_delete_$blog[blogid]" onclick="return confirm('确定删除吗？')">删除</a>
				<!--{elseif $_SGLOBAL[supe_uid] == ADMIN_ID }-->   &nbsp;<span class="pipe">|</span>  &nbsp;<a href="ask.php?do=ask&ac=cp&id=$value[id]&op=delete" id="blog_delete_$blog[blogid]" onclick="return confirm('确定删除吗？')">删除</a>
				<!--{/if}--></td>
  </tr>
  <tr>
    <td><!--{if $value[typename]}-->分类: <a href="ask.php?do=ask&type=$value['typeid']">{$value[typename]}</a><span class="pipe">|</span><!--{/if}-->
						<!--{if $value[view_count]}--><a href="ask.php?do=ask&ac=view&id=$value[id]">$value[view_count] 次阅读</a><span class="pipe">|</span><!--{/if}-->
						<!--{if $value[reply_count]}--><a href="ask.php?do=ask&ac=view&id=$value[id]">$value[reply_count] 个回复</a><!--{else}-->没有回复<!--{/if}-->
						<span class="pipe">|</span>	
						状态： <font color="#FF0000">$gEumsStatus[$value[status]]</font></td>
  </tr>
    <tr>
    <td height="6" colspan="2">&nbsp;</td>
  </tr>
    <tr>
    <td height="1" colspan="2" background="ask/css/bg_line.gif"></td>
  </tr>
  <tr>
    <td height="6" colspan="2">&nbsp;</td>
  </tr>
  <!--{/loop}-->
</table>
		<!--{else}-->
			<div class="article c_form">
			还没有相关的问答。
			<!--{if $space[self]}-->您可以<a href="ask.php?do=ask&ac=post">发布问答</a>。<!--{/if}-->
			</div>
		<!--{/if}-->
		</div>
		<div class="page">$multi</div>
	</div>
		

</div>
				</div>			
			</div><br>	
<div class=mycar>
				<div class=title>		
				     问答规则	  
				</div>
				<div class=info>
					1.发布问答，您需要给一定的悬赏积分。此积分在您发布的时候就从您的积分中扣除。<br>
				2.您的问答得到回复时，如果您看到满意答案，可以结帖。结帖是给每一个回复定个积分。<br>
				3.及时结帖是种美德，直接反应您的素质，请不要忘记结帖。
				</div>

			</div>

	</div>

<div id="wajinbar">

<div class="sidebox">
		<h2 class="title">
			<p class="r_option">
				
			</p>
			悬赏最高的未解决问答
		</h2>
		<ul class="wajin_list">
		<!--{loop $hotask $key $val}-->
				<li><!--{eval echo $key +1 }-->. <a href="ask.php?do=ask&ac=view&id=$val[id]">$val[title]</a> ({$val[score]} 个)</li>
		<!--{/loop}-->
		</ul>
  </div>

	
  </div>
	</div>	
<!--{template footer}-->
